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 NAV (Archived)

Error - Type conversion is not possible

(0) ShareShare
ReportReport
Posted on by 3,099

Hi

 In the below like it is giving error "Type Conversion is not possible because one of the operands contain an Invalid Type"

Date:text


SETRANGE("Sales Shipment Header"."Order Date","Sales Invoice Header".GETFILTER("Sales Invoice Header"."Order Date"));

Thanks

*This post is locked for comments

I have the same question (0)
  • AlexDen Profile Picture
    90 on at

    Hi.

    Use SETFILTER instead of SETRANGE in this case.

  • Community Member Profile Picture
    on at

    .

  • Suggested answer
    Olister Rumao Profile Picture
    3,967 on at

    Hi,

    When your using the Record.GETFILTER, it gives you the filters applied to the records.

    Use the following code

    SETFILTER("Sales Shipment Header"."Order Date","Sales Invoice Header".GETFILTER("Sales Invoice Header"."Order Date"));

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 NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans