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

Announcements

No record found.

News and Announcements icon
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

  • 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Prashant Singh Profile Picture

Prashant Singh 2

#1
nmaenpaa Profile Picture

nmaenpaa 2 Moderator

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans