AugForums.com

An Acumatica User Group

  • Free
    • Start Here
    • In-Person Gatherings
    • Power BI Workshop
    • Podcast
    • Rolodex
    • Blog
    • Forums
  • Paid
    • AugSQL
    • GI Course
    • GI Library
    • Consulting
  • Register
Acumatica Forums

By using this website, you agree to our Terms of Use (click here)

Forums
AUG Forums
Acumatica Analytica...
Type mismatch in th...
 
Notifications
Clear all

Questions Type mismatch in the expression: '-'.

 
Acumatica Analytical Report Manager (Financial Report Writer)
Last Post by Patrick Kohler 4 years ago
7 Posts
2 Users
2 Reactions
2,753 Views
RSS
Patrick Kohler
Posts: 24
 Patrick Kohler
Topic starter
April 12, 2022 1:49 pm
(@pmkohler)
Eminent Member
Joined: 6 years ago

We have recently been getting this error, "Type mismatch in the expression: '-'.", when a calculation in a column attempts to subtract one column from another, i.e.: =B-C. Both columns B and C are GL column types. The formula =B+C works but the formula =B-C does not.

Has anyone encountered this error before?


6 Replies
Dianne A
Posts: 23
 Dianne A
April 12, 2022 1:54 pm
(@dianne-a)
Eminent Member
Joined: 6 years ago

Hi, Patrick -

It looks like there may be no value in C when you get the message. Check whether some new data has a missing value in that column/field.

You could also try =B-IsNull(C,0) in place of =B-C.  If that works, then missing data was the issue and translating it to zero might be an appropriate solution.


Reply
Patrick Kohler
Posts: 24
 Patrick Kohler
Topic starter
April 12, 2022 1:59 pm
(@pmkohler)
Eminent Member
Joined: 6 years ago

Hi Dianne,

We have added a couple of accounts that do not have transactions yet.

I have tried forcing a zero value of the column is null but that does not work either.

Any suggestions?


Reply
Dianne A
Posts: 23
 Dianne A
April 12, 2022 2:18 pm
(@dianne-a)
Eminent Member
Joined: 6 years ago

Hmm... Are both columns actually numeric? I'd check the DAC to be sure, though it may be obvious if they are actually dollar amount fields.

What happens if you explicitly cast them to Decimal or Double? =CDbl(B) - CDbl(C)


Reply
Patrick Kohler
Posts: 24
 Patrick Kohler
Topic starter
April 12, 2022 2:41 pm
(@pmkohler)
Eminent Member
Joined: 6 years ago

If I cast them to Double I get tis error:

An error has occurred while the CDbl(Identifier(B)) function was being executed:
'Input string was not in a correct format.'

This is an ARM report so the data source for both columns being GL and turnover should return numeric data.

I'm going to submit a case to Acumatica and let everyone know what the outcome is.


Reply
Dianne A
Posts: 23
 Dianne A
April 12, 2022 2:48 pm
(@dianne-a)
Eminent Member
Joined: 6 years ago

Because it's a recent development, there must be some new data value throwing things off. Good luck!


Reply
Patrick Kohler
Posts: 24
 Patrick Kohler
Topic starter
April 12, 2022 5:17 pm
(@pmkohler)
Eminent Member
Joined: 6 years ago

The resolution to this issue was not in the Column Set but rather in the Row Set.

A user had added a row referencing another row without the "=" sign.

i.e., @002200 instead of =@002200


Reply
Tim Rodman and Dianne A reacted
Forum Jump:
  Previous Topic
Next Topic  
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,532 Topics
  • 11 K Posts
  • 29 Online
  • 2,418 Members
Our newest member: Chad Treadwell
Latest Post: Limited or no support from Acumatica?
Forum Icons: Forum contains no unread posts Forum contains unread posts
Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Online Members

 No online members at the moment

Acumatica Forums

Terms of Use & Disclaimers :: Privacy Policy

Copyright © 2026 · AUG Forums, LLC. All rights reserved. This website is not owned, affiliated with, or endorsed by Acumatica, Inc.

‹›×

    ‹›×