Skip to main content

Notifications

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

  • Suggested answer
    Olister Rumao Profile Picture
    3,959 on at
    RE: Error - Type conversion is not possible

    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"));

  • Community Member Profile Picture
    on at
    RE: Error - Type conversion is not possible

    .

  • AlexDen Profile Picture
    90 on at
    RE: Error - Type conversion is not possible

    Hi.

    Use SETFILTER instead of SETRANGE in this case.

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Microsoft Dynamics NAV (Archived)

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2

#1
mmv Profile Picture

mmv 2

#1
Amol Salvi Profile Picture

Amol Salvi 2

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans