Jump to content

This topic is 2073 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hi,

Hoping someone and provide some guidance.

I have been running version 1.0.1.5 of QBO for a number of years without issue.  I have just update the plugin to the latest version 2.0.4.0 and something has changed which isn't working with my PCQO scripts.  The following error is occurring when try to execute the Invoice upload command:

Error executing request

CODE: 2010

SEVERITY: ValidationFault

MESSAGE: Request has invalid or unsupported property

Property Name:Can not construct instance of com.intuit.schema.finance.v3.LineDetailTypeEnum from String value ("Service"): value not one of declared Enum instance names: [JournalEntryLineDetail, DepositLineDetail, SalesItemLineDetail, PurchaseOrderItemLineDetail, DiscountLineDetail, TDSLineDetail, SubTotalLineDetail, ItemReceiptLineDetail, PaymentLineDetail, TaxLineDetail, AccountBasedExpenseLineDetail, SalesOrderItemLineDetail, ItemBasedExpenseLineDetail, GroupLineDetail, DescriptionOnly]
  specified is unsupported or invalid

SOURCE: PCQO_RqExecute

Running Debugger stops at the Execute invoice upload line with the above error, and as the error states.  I have been through the Demo file to try and see if there are any new commands, or to see if any of the PCQO_ commands have changed.  But unable to find any differences.  I have attached a PDF of the script I think is failing.

If anyone can see where my script is incompatible with the new plugin I would be eternally greatful.

Many Thanks,
Brandan

Script.pdf

Link to comment
Share on other sites

I found the problem !

It was this line:

Set Variable [ $$Result ; Value:PCQO_RqAddFieldWithValue( "DetailType" ; "Service" ) ]

Needs to be:

Set Variable [ $$Result ; Value:PCQO_RqAddFieldWithValue( "DetailType" ; "SalesItemLineDetail" ) ]

Looks like 'Service' no longer works.

I'm very happy :)

Link to comment
Share on other sites

Hello,

 

Happy to hear you were able to figure out the issue. With version 2 of FM Books Online, the API actually changed. You can refer to this link to review the current API:
https://developer.intuit.com/docs/api/

Feel free to contacts us if you have any future questions. Have a good day!

Best Regards,

-Quincy

  • Thanks 1
Link to comment
Share on other sites

This topic is 2073 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.