Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

Instance validation error: '' is not a valid value for PurchasingTaxBasis.

Posted on by Microsoft Employee

I'm using GP's web services to display GP data in a .Net web app and I'm getting the above error. I used the msdn library https://msdn.microsoft.com/en-us/library/cc508508.aspxGetPurchaseOrderByKey Native example and got an unhandled exception error: Please contact your administrator. Digging further into the error this is what I have:

Instance validation error: '' is not a valid value for PurchasingTaxBasis.

at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderPurchaseOrder.Read37_PurchasingTaxBasis(String s)

   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderPurchaseOrder.Read38_NullableOfPurchasingTaxBasis(Boolean checkType)

   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderPurchaseOrder.Read69_PurchaseOrder(Boolean isNullable, Boolean checkType)

   at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderPurchaseOrder.Read70_PurchaseOrder()

I'm new to GP and it's web service but I'm successfully able to use the web service to retrieve the Customer object.

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Instance validation error: '' is not a valid value for PurchasingTaxBasis.

    Robert,

    Yes, and no. My solution is to pull data directly from the database, so not using the web services. And posting data using eConnect. The only reason I went this as a solution is because I found help. dyndeveloper.com/default.aspx has been a very good resource.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Instance validation error: '' is not a valid value for PurchasingTaxBasis.

    Hi...were you able to resolve this? I am experiencing the exact same error.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Instance validation error: '' is not a valid value for PurchasingTaxBasis.

    A little bit of an update for anybody out there following along. I am able to successfully display the following: a specific customer, a list of customers, a vendor, a list of purchase orders, a specific sales order and a list of sales orders. I am not able to get a specific purchase order.

    Still not sure why the specific purchase order query doesn't work. * I'm using the documentation at msdn.microsoft.com/.../cc508508.aspx for native endpoint. ** this works for Fabrikam but not for our company.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans