Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

"A value or expression was expected."

Posted on by Microsoft Employee

I'm trying to set in my report a expression depending of a boolean but i cant linked the expression to my global var aux.

proforma Boolean
aux Text

To turn around this problem I tried to create a column and with a/c code I set the column value depending of a boolean

teste.png

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: "A value or expression was expected."

    As a global it says that is already declared...

    Name DataType Subtype Length

    GLSetup Record General Ledger Setup

    ShipmentMethod Record Shipment Method

    PaymentTerms Record Payment Terms

    PrepmtPaymentTerms Record Payment Terms

    SalesPurchPerson Record Salesperson/Purchaser

    CompanyInfo Record Company Information

    CompanyInfo1 Record Company Information

    CompanyInfo2 Record Company Information

    CompanyInfo3 Record Company Information

    SalesSetup Record Sales & Receivables Setup

    VATAmountLine Record VAT Amount Line

    PrepmtVATAmountLine Record VAT Amount Line

    PrepmtVATAmountLineDeduct Record VAT Amount Line

    SalesLine Record Sales Line

    DimSetEntry1 Record Dimension Set Entry

    DimSetEntry2 Record Dimension Set Entry

    TempPrepmtDimSetEntry Record Dimension Set Entry

    PrepmtInvBuf Record Prepayment Inv. Line Buffer

    RespCenter Record Responsibility Center

    Language Record Language

    CurrExchRate Record Currency Exchange Rate

    AsmHeader Record Assembly Header

    AsmLine Record Assembly Line

    SalesCountPrinted Codeunit Sales-Printed

    FormatAddr Codeunit Format Address

    SegManagement Codeunit SegManagement

    ArchiveManagement Codeunit ArchiveManagement

    SalesPostPrepmt Codeunit Sales-Post Prepayments

    DimMgt Codeunit DimensionManagement

    CustAddr Text 50

    ShipToAddr Text 50

    CompanyAddr Text 50

    SalesPersonText Text 30

    VATNoText Text 80

    TotalText Text 50

    TotalExclVATText Text 50

    TotalInclVATText Text 50

    MoreLines Boolean

    NoOfCopies Integer

    NoOfLoops Integer

    CopyText Text 30

    ShowShippingAddr Boolean

    i Integer

    DimText Text 120

    OldDimText Text 75

    ShowInternalInfo Boolean

    Continue Boolean

    ArchiveDocument Boolean

    LogInteraction Boolean

    VATAmount Decimal

    VATBaseAmount Decimal

    VATDiscountAmount Decimal

    TotalAmountInclVAT Decimal

    VALVATBaseLCY Decimal

    VALVATAmountLCY Decimal

    VALSpecLCYHeader Text 80

    VALExchRate Text 50

    PrepmtVATAmount Decimal

    PrepmtVATBaseAmount Decimal

    PrepmtTotalAmountInclVAT Decimal

    PrepmtLineAmount Decimal

    OutputNo Integer

    NNCTotalLCY Decimal

    NNCTotalExclVAT Decimal

    NNCVATAmt Decimal

    NNCTotalInclVAT Decimal

    NNCPmtDiscOnVAT Decimal

    NNCTotalInclVAT2 Decimal

    NNCVATAmt2 Decimal

    NNCTotalExclVAT2 Decimal

    NNCSalesLineLineAmt Decimal

    NNCSalesLineInvDiscAmt Decimal

    Print Boolean

    ArchiveDocumentEnable Boolean

    LogInteractionEnable Boolean

    DisplayAssemblyInformation Boolean

    AsmInfoExistsForLine Boolean

    //--soft-global--// Integer

    PaymentMethod Record Payment Method

    proforma Boolean

    ReportTitle Text 250

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: "A value or expression was expected."

    I changed and I got the same error.

  • Suggested answer
    Andrey Baludin Profile Picture
    Andrey Baludin 3,941 on at
    RE: "A value or expression was expected."

    Change the column name to Report Title (from ReportTitle). NAV thinks that you are trying to assign text value to control name.

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: "A value or expression was expected."

    Try to change the name of the Column, the Variable and the Name of the Column is the same which is why I believe it is not able to recognize.

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: "A value or expression was expected."

    How is ReportTitle declared? Is it a global Text variable?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans