web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Error in PurchPurchaseOrderHeader/initFromCompanyInfoOnBlankPaper Method

(0) ShareShare
ReportReport
Posted on by 1,737

I am Writing The Below Code in the PurchPurchaseOrderHeader/initFromCompanyInfoOnBlankPaper 

this.TIN = "27650519753V";
this.SalesTaxRegistrationNumber = "27650519753C";
this.ECCNumber ="AABCS5068AXM002";

I am Getting This Error.

"Operand types are not compatible with the operator."

How To Solve this.

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

    The data type of the field where you get the error is not a string, so you can't assign a string value to it. Check what data type it is and assign a appropriate value.

  • srinivas pamidi Profile Picture
    1,737 on at

    It is a Integer Field Now i assign the String Field.

    Is There is Any Alternative to assign these String Values,

  • Community Member Profile Picture
    on at

    I don't think you are supposed to assign a string value to an integer field. Somebody created the field with the intention that only number are entered. If you really have to insert a string you have to change the data type of the field but I would advise you not to do so because you would have to adjust all pieces of code that reference the field.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans