Skip to main content
Tweeted twitter.com/StackSalesforce/status/1355440638670614529
added 2 characters in body
Source Link
nicolevy
  • 414
  • 1
  • 6
  • 20

So my component has an attribute defined like this:

<aura:attribute name="accountId" type="String" default="" />

that holds the value of a lookup lightning:inputField. I am setting the parameter like so:

createDataExport.setParams({"accountId" : component.get('v.accountId')});

and the backend controller looks like this:

@AuraEnabled
public static String startExport(String accountId) {

and yet I am still getting the error Value provided is invalid for action parameter accountId of type 'String'. I have also tried changing over to type IdId but no dice. I've also made sure that the attribute is populating properly, and it is.

Any help is appreciated.

So my component has an attribute defined like this:

<aura:attribute name="accountId" type="String" default="" />

that holds the value of a lookup lightning:inputField. I am setting the parameter like so:

createDataExport.setParams({"accountId" : component.get('v.accountId')});

and the backend controller looks like this:

@AuraEnabled
public static String startExport(String accountId) {

and yet I am still getting the error Value provided is invalid for action parameter accountId of type 'String'. I have also tried changing over to type Id but no dice. I've also made sure that the attribute is populating properly, and it is.

Any help is appreciated.

So my component has an attribute defined like this:

<aura:attribute name="accountId" type="String" default="" />

that holds the value of a lookup lightning:inputField. I am setting the parameter like so:

createDataExport.setParams({"accountId" : component.get('v.accountId')});

and the backend controller looks like this:

@AuraEnabled
public static String startExport(String accountId) {

and yet I am still getting the error Value provided is invalid for action parameter accountId of type 'String'. I have also tried changing over to type Id but no dice. I've also made sure that the attribute is populating properly, and it is.

Any help is appreciated.

Source Link
nicolevy
  • 414
  • 1
  • 6
  • 20

Value provided is invalid for action parameter [String param] of type 'String'

So my component has an attribute defined like this:

<aura:attribute name="accountId" type="String" default="" />

that holds the value of a lookup lightning:inputField. I am setting the parameter like so:

createDataExport.setParams({"accountId" : component.get('v.accountId')});

and the backend controller looks like this:

@AuraEnabled
public static String startExport(String accountId) {

and yet I am still getting the error Value provided is invalid for action parameter accountId of type 'String'. I have also tried changing over to type Id but no dice. I've also made sure that the attribute is populating properly, and it is.

Any help is appreciated.