nevermind found a ruby parser and it said that the decimals needed 0 in front... that fixed it.
Grouping formulas - multiple elseif statements (with AND function) not working - syntax error
Grouping formulas - multiple elseif statements (with AND function) not working - syntax error
You need ==
, not =
for equality comparison.
Dataset not updated after reload data
Hi
My dataset is still used the old data after an upload
I am not able to find our why ?
https://www.mockaroo.com/3a01aaa0
Colum status_code
Thanks
Alter JSON array min/max
I'd like to generate a JSON array where the number of entries is dependent on other data I'm generating. So far I've tried
- Entering a field name for the min/max values. (The site won't let me do this).
- Using a formula on the JSON array (This simply prevents the JSON array from being generated).
I've now hit a brick wall. Does anyone have any suggestions?
How to retrieve a substring BEFORE a delimiter in a previous field?
I have a field pulled from reference data such as, COUNTRYNAME / TIMEZONE. I need to extract the country name for the next field.
I've read that I can use regular expressions or ruby code but so far I haven't figured out how.
Can I use regexp to extract the desired string or is regex only used to create new values and not manipulate existing values.
I tried to split the string using ruby string.split but was told 'String" is not found.
After getting neither option to work I took a step back to see if I could simply determine the position of the "/" character.
I tried this: regiona(string.index("A")) But again, got the error "String Not Found"
Obviously I'm missing something fundamental in the mechanism for performing operations on generated data.
Any suggestions?
Thanks,
-jeff
How to retrieve a substring BEFORE a delimiter in a previous field?
Assuming you have a field named "time_zone" you can access the country part using a formula field with the following value:
time_zone.split(/\//)[0]
Alter JSON array min/max
Perhaps using a Dataset might get you closer. Can you share the link to the schema and the name of the field in question?
Accessing $oid in JSON
hmm, whatdaya know. I was trying all sorts of complicated ways and a simple to_s did the trick. Thanks!!!
How can I force mockaroo to generate a file on the server instead of directly downloading it?
When a number of rows to be generated is massive, Mockaroo first generates the file on the server, to be available in the downloads section later.
I have this test scenario where each Json row, contains 1,000 nested objects, and if I try to generate 10,000 rows, Mockaroo send the download directly, and I am getting a time out network error.
How can I force Mockaroo to generate the file on the server first, regardless of a number of rows to be generated?
s3.amazonaws.com sent an invalid response
Hi there,
I am a paid member fror Mockaroo for 50$.
When i try to generate data for 20,000 rows and 100,000 rows, its done however when i click on the grnerated done to download the csv generated file i get following error and cannot download the data as csv.
The s3.amazonaws.com page isn’t working
s3.amazonaws.com sent an invalid response.
ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_DISPOSITION
Could you please help me solve this.
Also i wanted to know is there a limitation of the totol ammount of data generated with the paid member of 50$. Please advise
s3.amazonaws.com sent an invalid response
There is no daily limit on data for Silver and Gold plans when using the website. Daily limits are only enforced when using the API.
I wasn't able to reproduce the problem with a simple case. Would you mind posting the share link at the bottom of your schema?
JSON Parent to have total amount of child field
I am mocking out a JSON object where I want the sum of all child service lines to be added and be on the invoice level.
invoice.Amount = sum(invoice.serviceLine.amount)
My apologies if I missed seeing this in another post.
JSON Parent to have total amount of child field
Something like this? http://mockaroo.com/943cff30
Here I use a formula to sum the amount values:
serviceLine.map {|l| l['amount']}.sum
JSON Parent to have total amount of child field
Yes, that's what I'd like to do, but the nature of the document has the invoice sum at the top of the document not the bottom. When I move the sum to be at the top, it can't find the amount field, I think I saw elsewhere that the formula has to appear after the field it's referencing. Per the standard of the document, I need it at the top. Is there anyway around that?
My only other thoughts, were to write something that read through the JSON object and put the summations in where I needed them.
Thank you for the very quick reply!
JSON Parent to have total amount of child field
That is correct, formulas must always appear after the fields they depend on as the fields are generated in the order in which they appear in the schema. You'd either need to postprocess the data or make the argument that field order in json shouldn't matter
JSON Parent to have total amount of child field
You're right. It doesn't matter. I'm trying to mock a JSON version of an x12 EDI document. The x12 cares, but the JSON doesn't since I wouldn't be parsing it with the x12 standard anyway... Thanks!
s3.amazonaws.com sent an invalid response
Hey you know that AWS S3 service was down in the US East right? https://aws.amazon.com/message/41926/
Wider Field Name Column
When working on a schema, particularly JSON, the Field Names get rather long with the nesting. The problem is my monitor is 2560x1440 and it appears the schema modification portion of Mockaroo only expands out to what I think is 1024. It would be really nice if the Schema Editor would stretch out to take more advantage of my screen so that I could see the entire Field Name.
I appreciate any suggestions!
Thank you much,
Tim
How can I force mockaroo to generate a file on the server instead of directly downloading it?
Mockaroo will now take array sizes into account when determining if a file should be generated on the server. If the number of records + the sum of all array sizes is greater than 10,000, the file will be generated on the server. Otherwise, it will be streamed to the browser.
Repeating records with increment dates based on previous row value
I want to generate records with row over row effective valid beginning date and effective end date dependencies
The first record would have an effective date of 1900/01/01 and an effective end date of a random date value.
Then each subsequent record would have an effective begin date that would be the effective end date from the previous record.
The last version of a row of a specific ID would have an effective end date of 9999/01/01.
The number of iterations for a given ID is variable.
File could look like that.
Is this something possible with Mokaroo?
Thanks
ID EFF_BEGIN_DATE EFF_END_DATE
1 1900/01/01 2015/02/18
1 2015/02/18 2016/05/12
1 2016/05/12 9999/01/01
2 1900/01/01 2012/03/13
2 2012/03/13 2014/05/12
2 2014/05/12 2015/01/23
2 2015/01/23 9999/01/01
...
...