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)

Double dot (..) in value of a field creates error.

(0) ShareShare
ReportReport
Posted on by 278

I was debugging an issue on PO. When trying to post invoice, it updates inventory and throws error. I found out that a query range was being added on a field through query.addrange().value();. The value was like 'rec..2', having double dots. When i saw the final transformed query from watch window, it made it like this -> (inventTrans.PakingslipId >= 'rec' AND inventTrans.PackingSlipId <= '2'). it removed the dots and broke the value. Query returned no record. I couldn't understand why it happened. when I corrected the value of packing slip id, having no double dots. It ran fine. 

Can anyone elaborate why it happened? 

*This post is locked for comments

I have the same question (0)
  • Verified answer
    XB Profile Picture
    1,875 on at

    Axapta interprets these two points are a range like range with dates (01012016 to 31122016)

  • Verified answer
    Martin Dráb Profile Picture
    237,976 Most Valuable Professional on at

    This happens when developers don't handle values correctly.

    You want query.addrange().value(queryValue("rec..2")) instead of query.addrange().value("rec..2"), because queryValue() escapes special characters such as '.'.

    If you need to do escaping manually, such as when you're adding a range through GUI, you can use rec\.\.2 instead of rec..2.

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