Quantcast
Channel: Mockaroo Community Forum - Latest posts
Browsing all 2665 articles
Browse latest View live

Syntax error in formula from a newbie

if field(‘DiagnosisCode’) == ‘D1234’ ‘Chronic Lower Back Pain’ elsif field(‘DiagnosisCode’) == ‘E5678’ ‘Type 2 Diabetes Mellitus’ elsif field(‘DiagnosisCode’) == ‘F91011’ ‘Essential Hypertension’...

View Article


Syntax error in formula from a newbie

Two things; The syntax error is likely from the use of non-standard quote marks. Mockaroo expects straight quotes (' and "), but it looks like you’re using curly quotes (‘ and ’). You need to use...

View Article


Syntax error in formula from a newbie

I would also consider using a case statement like below case field(‘DiagnosisCode’) when ‘D1234’ return ‘Chronic Lower Back Pain’ when ‘E5678’ return ‘Type 2 Diabetes Mellitus when ‘F91011’ return...

View Article

Syntax error in formula from a newbie

thank you @BilltheCat

View Article

Newbie here... question about domain data

I’m looking for an easy way to generate a list of about 10M real / unique domains. Does anyone know how big the Domain data database is that Mockdata has (i.e. how many unique domains)?

View Article


Aggregate nested json value of hidden field

I saw this answer about aggregating a field from nested json, but when I try to do so with a hidden field prefixed by __, I get the “Could not access blank value” message in the payload. Is there a...

View Article

Image may be NSFW.
Clik here to view.

Newbie here... question about domain data

Uniqueness of generated values No, general Mockaroo data is random, with no guarantee or effort towards uniqueness. Uniqueness is very hard to accomplish at scale. Mockaroo uses multiple concurrent...

View Article

Uniqueness of generated values

(post deleted by author)

View Article


Newbie here... question about domain data

Thanks for the response.

View Article


Aggregate nested json value of hidden field

Hi can you post some screenshots of what you are trying to do? are you putting JSON in a hidden field? how are you referencing the field in your formula

View Article

Image may be NSFW.
Clik here to view.

Aggregate nested json value of hidden field

Thanks for replying! Here’s a screenshot of a minimal example. When I generate, the thing.total field appropriately sums the ‘a_number’ field, but the thing.hidden_total field just generates “error:...

View Article

Aggregate nested json value of hidden field

Here’s an example of aggregating an attribute in an array: https://www.mockaroo.com/b6fe2a30. I use the following formula: items.map {|item| item["price"]}.sum Your example is slightly more...

View Article

Aggregate nested json value of hidden field

So it looks like that runs into the same issue - if the field to sum is NOT hidden, it works fine, but if it references a hidden field it returns the “Could not access blank value” message.

View Article


Aggregate nested json value of hidden field

Yes, that appears to be correct. Nested arrays are generated and hidden values are removed before they are made available to the parent. So you cannot aggregate on a hidden value. There is, however,...

View Article

Aggregate nested json value of hidden field

That looks promising! But I don’t seem to have access to the example.

View Article


Aggregate nested json value of hidden field

Sorry, I posted the wrong link. Here you go: Mockaroo - Random Data Generator and API Mocking Tool | JSON / CSV / SQL / Excel

View Article

Malformed UTF-8 characters, possibly incorrectly encoded

How are you able to generate words with accent characters? AI Generate doesn’t seem to understand anything.

View Article


Malformed UTF-8 characters, possibly incorrectly encoded

Can you give me some more context to what you’re trying to do? Perhaps a link? I’m happy to have a look and troubleshoot.

View Article

Creating data for related tables

hey , can anyone tell about the pricing of fabricate ?

View Article

Aggregate nested json value of hidden field

This seems close, but it’s producing an unwanted copy of the “items” array after the total: { "id": 1, "outer": [ { "items": [ { }, { } ], "total": 89.92, "items": [ { }, { } ] } ] }, { "id": 2,...

View Article
Browsing all 2665 articles
Browse latest View live