question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

{{items.Count()}} in my template gives Unknown identifier 'items' error in excel output

See original GitHub issue

Hi Team,

Thanks for this wonderful Package. I’m using the latest beta. As per the docs, the following link says,

Expressions are enclosed in double braces {{ }} and utilize the syntax similar to C#. Lambda expressions are supported.

{{items.Where(i => i.Currency == "RUB").Count()}}

So I tried just to get count from items using {{items.Count()}} in my excel template but I’m getting the following error,

Unknown identifier ‘items’

Please assist on where I’m wrong.

Template: image

Output: image

Thanks, Abdul

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
b0bi79commented, Aug 8, 2019

Inside tables (ranges) you can use:

  • the item variable to refer to the current row object
  • the items variable to access the collection
  • the index variable to get the serial number of the current object in the collection Here details
0reactions
fingers10commented, Aug 8, 2019

Alright thanks. Let’s close this issue. Thanks for the support and help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

6 Common CSV Import Errors and How to Fix Them
Discover the top 6 most common CSV import errors that companies experience when uploading data.
Read more >
How to count unique values in Excel an easy way
The formula works with this simple logic: UNIQUE returns an array of unique entries, and COUNTA counts all the elements of the array....
Read more >
Solved: Unable to process template language expressions in...
Unable to process template language expressions in action 'Send_an_email_to_accounts' inputs at line '1' and column '2575': 'The template language expression ' ...
Read more >
Excel VLOOKUP Function Examples and Troubleshoot ...
Excel VLOOKUP formula examples. Find product price. Change letter grades to numbers. Troubleshoot. Fix sorting problem.
Read more >
Review and troubleshoot import errors
The import file contains a value for a number property with non-numeric characters. The affected records were imported, but the number property does...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found