Authorization Error - Need resolve ASAP
For anyone else who ran into this issue: I pushed out an update earlier today to add a BOM to all data files generated with Mockaroo. This managed to cause a bug in the API. This issue is now resolved.
View ArticleGenerating usernames
Hi, I'm looking to generate a dataset containing around 30000 unique usernames based on an 8 digit number, some of which (not all) start with a specific 2 digit number. Can somebody advise on the best...
View ArticleGenerating usernames
Have a look at the formula data type. You can use it to combine fields to make a custom type. You could, for example combine the built in username field with a number field to get the desired output....
View ArticleDynamically populating cells dependent on the previous cell being not blank
I have 6 columns which all depend on the previous column in order to not be blank. Criteria:col1 is never blankcol2 through col6 can only populated if the previous field is not blank, but can also be...
View ArticleQuery String Parameter
How do I add the "schema" query string parameter to this request? URL url = new URL("http://www.mockaroo.com/api/generate.json?key=abcd1234");
View ArticleQuery String Parameter
Just add &schema=(schema name) to the url. Here's a fiddle you can play with: http://jsfiddle.net/mw74bsmd/. Just enter your api key and the name of one of your saved schemas.
View ArticleDynamically populating cells dependent on the previous cell being not blank
I'm sorry for not getting back to you sooner. The key is to use inline formulas, which you can define by clicking the f(x) button at the end of each field row. Here's an example that does what you...
View ArticleDynamically populating cells dependent on the previous cell being not blank
Oh wow , seems like I just read right past the explanation of this in the f(x) modal. Thanks for the reply, thats something I should have realized much sooner.
View ArticleDataset column lookups
I have a dataset that has a code and amount field called AmountData. Code is a field in my schema being populated from another dataset. I would like to populate the Amount field from AmountData which...
View ArticleDataset column lookups
You can use the from_dataset function in a formula field. From the docs: from_dataset("dataset", "column", join_criteria) => Fetches a value from a dataset. For example, from_dataset("People",...
View ArticleBlank Values while using Random(a,b) function in formula field
Hey , I need to create values of a certain field based on the values of another field in the same data set. I am trying to use the random function to generate a numerical value. However this ends up...
View ArticleBlank Values while using Random(a,b) function in formula field
You need to specify the value that should be output when Type is not "Road" between else and end in your formula. If you need to specify values for other types you can do so with something like: if...
View ArticleSetting country context
One of the key points of using Mockaroo is the ability to provide consistency within data records and that’s very good but I get an issue with countries. I have made a crude fix by having a field...
View ArticleSetting country context
You can, in fact, use country multiple times and get different results. Any other location fields will also be based on the generated country. Here's an example: http://mockaroo.com/a76b6890 I did,...
View ArticleSetting country context
My original test used Country Code and then Country and in 100/100 rows they came out the same. When I switched to using Country, twice they were different. I now think this must be the same row...
View ArticleUK Postcodes database
You can't use it to look up an address but a complete set of postcodes is available free, here: https://www.ordnancesurvey.co.uk/opendatadownload/products.html Here's a sample For 4-digit outward...
View ArticleGenerating a two-letter code
I have been trying to generate a two-letter code from a subset of the upper case alphabet.For the whole alphabet I could have used [:upper:]{2} but because it's a subset I tried this:...
View ArticleDataset Column repeats in custom distribution
I have a dataset set called iso3166CountryCodes with 242 records and I wanted it to deliver a high proportion of one country compared to others. I set the column to numeric isocode and then went to...
View Article