<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by j i m b o w e r y on Medium]]></title>
        <description><![CDATA[Stories by j i m b o w e r y on Medium]]></description>
        <link>https://medium.com/@jimbowery?source=rss-5684afd9c7e0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Gkuh4oeX1XZCo_t5ldCugA@2x.jpeg</url>
            <title>Stories by j i m b o w e r y on Medium</title>
            <link>https://medium.com/@jimbowery?source=rss-5684afd9c7e0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 12:17:04 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jimbowery/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Fabric SQL Database as a Metastore]]></title>
            <link>https://medium.com/@jimbowery/fabric-sql-database-as-a-metastore-5ebf5c3fdd43?source=rss-5684afd9c7e0------2</link>
            <guid isPermaLink="false">https://medium.com/p/5ebf5c3fdd43</guid>
            <dc:creator><![CDATA[j i m b o w e r y]]></dc:creator>
            <pubDate>Tue, 21 Oct 2025 14:35:15 GMT</pubDate>
            <atom:updated>2025-10-21T14:35:15.791Z</atom:updated>
            <content:encoded><![CDATA[<h4>A beginners guide to metadata uses in Microsoft Fabric SQL</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*esrjwsS5vQ6nEkIc" /><figcaption>Photo by <a href="https://unsplash.com/@markuswinkler?utm_source=medium&amp;utm_medium=referral">Markus Winkler</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Data engineers are always looking for better ways to implement custom metadata stores allowing us to automate data ingestion and transformation, and provide storage for operational metadata across workspaces.</p><p>Microsoft Fabric promises to provide a unified engineering and analytics platform, allowing data engineers to own the resources needed to develop data solutions, with less reliance on Cloud and DevOps teams. While Fabric still not completely unified (hello KeyVault 👋), with Fabric SQL Databases we <em>have</em> moved a step closer.</p><p>In this post I’ll give an overview of the basic metadata artifacts and their use before we move on to discussing some existing frameworks in a subsequent post.</p><h3>Why use a metastore?</h3><p>While there exists built in logging and assets can be individually configured for different purposes, there are important advantages to using a metastore:</p><ul><li>Store easily updatable ingestion and transformation metadata. This data can be passed as parameters to multiple assets such as ingestion pipelines, functions, notebooks and stored procedures. This simplifies design and allows the delegation of configuration to non technical users.</li><li>Customisable schemas tailored to your governance requirements so that metadata can be segregated and only made visible to certain groups using role based access.</li><li>Customisable auditing that can be tailored to specific requirements.</li><li>Flexibility to make the metadata available to additional (sometimes external) resources.</li></ul><h3>A typical metastore</h3><p>We’ll split the metastore into 2 logical parts:</p><ol><li>Ingestion and transformation</li><li>Logging</li></ol><h4>Ingestion and transformation</h4><p>For these processes we will use a number of tables (to store the data) and stored procedures (to retrieve the metadata).</p><p><strong>For a very basic framework we would have tables providing the following functionality:</strong></p><p><em>Ingestion Definition </em>with one<em> </em>line per dataset (e.g. table in a data source) identifying the source, destination, destination structure, full load or incremental, active flag, number of retries.</p><p><em>Column Mapping </em>with one line per column for each dataset used for renaming</p><p><em>Transformation Definition </em>with one line per transformation (e.g. stored procedure or notebook) with source, destination, transformation entity, active flag, number of retries and run order.</p><p><strong>And the following stored procedures:</strong></p><p><em>Get Ingestion Definition</em> for querying the ingestion and column mapping tables and supplying the output to a copy pipeline.</p><p><em>Get Transformation Definition</em> for querying the transformation definition and supplying the output to a notebook, function or stored procedure.</p><h4>Logging</h4><p><strong>For logging we would have tables providing the following functionality:</strong></p><p><em>Ingest Log </em>used to log each run or a dataset ingestion with details of success or failure, start and end timestamps and the number of rows copied.</p><p><em>Transformation Log</em> used to log each dataset transformation, its status (started or running, success, failure) and start and end timestamps.</p><p><strong>And the following stored procedures:</strong></p><p><em>Insert Log</em> to insert the original log record for an ingestion or transformation</p><p><em>Update Log</em> to update the log record with the final status and any error messages for an ingestion or transformation</p><h3>Using the metastore</h3><p>To support the metastore, we can create a manually run ingestion pipeline that takes csv files stored in OneLake (for ingestion and transformation) and upsert the data into the configuration tables above. This makes it easier to update details without having to manually query and update the database.</p><p>Data pipelines use a Lookup activity to call the <em>Get Ingestion Definition</em> and <em>Get Transformation Definition</em> stored procedure and use the output to populate the parameters for a particular pipeline, usually nested with a ForEach loop. The example below is for a SQL Server source:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/482/1*46oSaHGhWPs0aiVvzV_WgA.png" /><figcaption>Typical ingestion initiation</figcaption></figure><p>For logging we add activities at the start and end of ingestion or transformation to initiate and later update a log record. In this simple pipeline we retrieve the RunID of the pipeline, initiate a log record, copy the data and then update the log record depending on the outcome of the activity:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uUSrwr7yJusrkTRioZnUig.png" /><figcaption>Simple copy pipeline with logging</figcaption></figure><p>Another advantage of centralising our logging is that it is easy to leverage PowerBI to provide realtime dashboards that show pipeline health, execution time and lineage of data, surfacing that data without the need to give users access to the whole Fabric interface and the complexities on Fabric Monitor.</p><h3>Conclusion</h3><p>With Fabric SQL Databases, we can now store metadata within Fabric in an efficient, easily queryable form without the need for additional external resources. This improves governance and observability of your metadata and can be extended in multiple ways.</p><h3>Next</h3><p>In the next post, I’ll identify some existing metadata frameworks, their pros and cons and how these can be expanded with additional functionality .</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5ebf5c3fdd43" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Monitoring synapse pipelines via the api]]></title>
            <link>https://medium.com/@jimbowery/monitoring-synapse-pipelines-via-the-api-c86621943816?source=rss-5684afd9c7e0------2</link>
            <guid isPermaLink="false">https://medium.com/p/c86621943816</guid>
            <category><![CDATA[synapse]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[azure]]></category>
            <dc:creator><![CDATA[j i m b o w e r y]]></dc:creator>
            <pubDate>Tue, 19 Mar 2024 15:21:50 GMT</pubDate>
            <atom:updated>2025-10-21T14:47:31.276Z</atom:updated>
            <content:encoded><![CDATA[<p>It’s a bit of a chicken/egg situation, but sometimes it’s useful to be able to extract the status of a past pipeline run to use in another pipeline. The synapse rest api has functionality to check the status of a <a href="https://learn.microsoft.com/en-us/rest/api/synapse/data-plane/pipeline-run/get-pipeline-run?view=rest-synapse-data-plane-2020-12-01&amp;tabs=HTTP">pipeline run</a> and placing this in a pipeline with a parameter of the Run ID you are looking at is quite simple.</p><ul><li>Create a pipeline and add a web activity</li><li>Add a parameter to the pipeline to take the Run ID</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/686/0*5FqptQofvJTcn_mI.png" /></figure><ul><li>In the URL settings for the web activity add the API url including the parameterised RunID.</li></ul><p>e.g.</p><blockquote><em>@concat(‘</em><a href="https://mysynapseinstance.dev.azuresynapse.net/pipelineruns/"><em>https://mysynapseinstance.dev.azuresynapse.net/pipelineruns/</em></a><em>’,pipeline().parameters.RunID,‘?api-version=2019-06-01-preview’)</em></blockquote><ul><li>The remaining settings are as below, in this case using the system assigned managed identity for authorisation.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/508/0*TV70SdYaRF2LVhfI.png" /></figure><p>Now, to test it we take the Run ID of an existing triggered pipeline run from the monitor, start a debug of the new pipeline, and post the copied Run ID into the parameter prompt.</p><p>Below is an example output:</p><blockquote><em>{ “id”: “/SUBSCRIPTIONS/xxxxxx-xxxx-xxxx-xxxx–xxxx/RESOURCEGROUPS/RG_DEV/PROVIDERS/MICROSOFT.SYNAPSE/WORKSPACES/xxxxxxxx/pipelineruns/46a74e66–6539–4bfb-91de-ce982a138d55”, “runId”: “46a74e66–6539–4bfb-91de-ce982a138d55”, “debugRunId”: null, “runGroupId”: “46a74e66–6539–4bfb-91de-ce982a138d55”, “pipelineName”: “PL_JobStatus”, “parameters”: {}, “invokedBy”: { “id”: “</em><strong><em>e59b277e531548f097946505706748f5</em></strong><em>”, “name”: “Manual”, “invokedByType”: “Manual” }, “runStart”: “2024–03–19T11:23:12.5789679Z”, “runEnd”: “2024–03–19T11:23:19.7344027Z”, “durationInMs”: 7155, “status”: “Failed”, “message”: “Operation on target Web1 failed: {“type”: “</em><a href="https://tools.ietf.org/html/rfc7231#section-6.5.4\"><em>https://tools.ietf.org/html/rfc7231#section-6.5.4\</em></a><em>,“title”: “Not Found”,“status”: 404,“traceId”: “00-b5b1041a94f5bb4b7c105d474716adc9-b07adec08de93806–00”}“,”pipelineReturnValue”: {}, “lastUpdated”: “2024–03–19T11:23:19.7346712Z”, “annotations”: [], “runDimension”: {}, “isLatest”: true, “ADFWebActivityResponseHeaders”: { “Strict-Transport-Security”: “max-age=31536000; includeSubDomains”, “x-ms-correlation-request-id”: “d9d061e5–0b36–4c8a-8f1a-4d88dc1fc879”, “x-ms-request-id”: “01794d8e-708d-42d1–89ef-e59f5a284da6”, “Date”: “Tue, 19 Mar 2024 14:04:55 GMT”, “Server”: “Kestrel;Microsoft-HTTPAPI/2.0”, “Content-Length”: “1019”, “Content-Type”: “application/json; charset=utf-8” }, “effectiveIntegrationRuntime”: “AutoResolveIntegrationRuntime (UK South)”, “executionDuration”: 0, “durationInQueue”: { “integrationRuntimeQueue”: 0 }, “billingReference”: { “activityType”: “ExternalActivity”, “billableDuration”: [ { “meterType”: “AzureIR”, “duration”: 0.016666666666666666, “unit”: “Hours” }] } }</em></blockquote><h3>Note</h3><p>You can only query pipeline runs that have been triggered, not those from a debug run! You’ll get a <em>404</em> if you try to query one of those.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c86621943816" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Salesforce and Data Loader]]></title>
            <link>https://medium.com/@jimbowery/salesforce-and-data-loader-c7408026e961?source=rss-5684afd9c7e0------2</link>
            <guid isPermaLink="false">https://medium.com/p/c7408026e961</guid>
            <category><![CDATA[salesforce]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[dataloader]]></category>
            <dc:creator><![CDATA[j i m b o w e r y]]></dc:creator>
            <pubDate>Tue, 16 Apr 2019 13:08:36 GMT</pubDate>
            <atom:updated>2019-04-17T09:49:29.763Z</atom:updated>
            <content:encoded><![CDATA[<h4>Damn you, SaaS providers, with your shiny interfaces that obscure traditional SQL interaction.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/787/1*RjLtQFVetSGOCX8tPnudWg.png" /></figure><p>What would traditionally be a straightforward task of running a scheduled SQL extract can sometimes turn into a configuration nightmare when you have to use the vendor provided tool to do so.</p><ol><li><strong>Construct your query</strong></li></ol><p>Log into Salesforce Data Loader and select you object from the scrolling list. You can then pick your fields and clauses to construct your query.</p><p>Copy and paste the constructed query somewhere safe as you will need it later.</p><p>BTW, why can’t resize the fields? Half of them are truncated unless you scroll laterally….and why the enormous header?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/853/1*sR-pV8V1UPF7lfFktSDjhQ.png" /><figcaption>Bighead…</figcaption></figure><p>2. <strong>Create an encryption key file</strong></p><p>In a command console, go to the installation bin folder (e.g. C:\Program Files (x86)\salesforce.com\Data Loader\bin)</p><p>Create the file using the following command:</p><pre>C:\Program Files (x86)\salesforce.com\Data Loader\bin&gt;<strong>encrypt.bat -k</strong><br>Keyfile &quot;C:\Users\jbowery\.dataloader\dataLoader.key&quot; was created!</pre><p>This will create and save a key file as %USERPROFILE%\.dataloader\dataLoader.key</p><p>3. <strong>Encrypt your password with the key file</strong></p><p>Using the same command but with the -e flag and the full path to the newly created key file</p><pre>C:\Program Files (x86)\salesforce.com\Data Loader\bin&gt;<strong>encrypt.bat -e thisismypassword1 “C:\Users\user1\.dataloader\dataLoader.key”</strong></pre><pre>The output string of encryption is:<br>0123abc0123abc0123abc0123abc0123abc0123abc0123abc0123abc0123abc0</pre><p>Keep the output safe as we will need it for the configuration file later</p><p>4. <strong>Create a mapping file</strong></p><p>Create a repository for your configuration files and create a new file with a .sdl extension. In this file you can map the output columns with a friendly name for the output .csv</p><p>e.g.</p><pre>#propertylocation.sdl<br>#Mapping Values<br>#20190403<br>Prop_Addrline1=Addressline1<br>Prop_Addrline2=Addressline2<br>Prop_Addrline3=Addressline3<br>Prop_PC=Postcode<br>Prop_Town=Town</pre><p>For more complex mappings it is possible to set them up in the data loader interface (but only when using the insert/update/upsert functions) and export using the Save Mapping button.</p><p><a href="https://developer.salesforce.com/docs/atlas.en-us.dataLoader.meta/dataLoader/defining_field_mappings.htm">Define Data Loader Field Mappings | Data Loader Guide | Salesforce Developers</a></p><p>5. <strong>Create a process configuration file</strong></p><p>Create a new file configuration folder from above and name it <strong>process-conf.xml</strong></p><p>Edit the file adding the following XML:</p><pre>&lt;!DOCTYPE beans PUBLIC &quot;-//SPRING//DTD BEAN//EN&quot; &quot;<a href="http://www.springframework.org/dtd/spring-beans.dtd">http://www.springframework.org/dtd/spring-beans.dtd</a>&quot;&gt;<br>&lt;beans&gt;<br>    &lt;bean id=&quot;csvPropertyExtractProcess&quot;<br>          class=&quot;com.salesforce.dataloader.process.ProcessRunner&quot;<br>          singleton=&quot;false&quot;&gt;<br>      &lt;description&gt;csvPropertyExtract job gets property info from salesforce and saves info into a CSV file.&quot;&lt;/description&gt;<br>        &lt;property name=&quot;name&quot; value=&quot;csvPropertyExtract&quot;/&gt;<br>        &lt;property name=&quot;configOverrideMap&quot;&gt;<br>            &lt;map&gt;<br>                &lt;entry key=&quot;sfdc.debugMessages&quot; value=&quot;true&quot;/&gt;<br>                &lt;entry key=&quot;sfdc.debugMessagesFile&quot; value=&quot;C:\temp\Salesforce\sfdcSoapTrace.log&quot;/&gt;<br>                &lt;entry key=&quot;sfdc.endpoint&quot; value=&quot;<a href="https://login.salesforce.com/">https://login.salesforce.com</a>&quot;/&gt;<br>                &lt;entry key=&quot;sfdc.username&quot; value=&quot;<a href="/service/mailto:salesforce-api@landmark.co.uk">u</a>ser@domain.dom&quot;/&gt;<br>                &lt;!-- password specified below is invalid, please generate one using the encrypt.bat utility --&gt;<br>                &lt;entry key=&quot;sfdc.password&quot; value=&quot;0123abc0123abc0123abc0123abc0123abc0123abc0123abc0123abc0123abc0&quot;/&gt;<br>                &lt;entry key=&quot;process.encryptionKeyFile&quot; value=&quot;C:\Users\user1\.dataloader\dataLoader.key&quot;/&gt;<br>                &lt;entry key=&quot;sfdc.timeoutSecs&quot; value=&quot;600&quot;/&gt;<br>                &lt;entry key=&quot;sfdc.loadBatchSize&quot; value=&quot;200&quot;/&gt;<br>                &lt;entry key=&quot;sfdc.entity&quot; value=&quot;Properties&quot;/&gt;<br>                &lt;entry key=&quot;sfdc.extractionRequestSize&quot; value=&quot;500&quot;/&gt;<br>                &lt;entry key=&quot;sfdc.extractionSOQL&quot; value=&quot;Select Prop_Addrline1, Prop_Addrline2, Prop_Addrline3, Prop_PC, Prop_Town FROM Properties WHERE Prop_AddressLine1 != null AND status != &#39;haunted&#39;&quot;/&gt;<br>                &lt;entry key=&quot;process.operation&quot; value=&quot;extract&quot;/&gt;<br>                &lt;entry key=&quot;process.mappingFile&quot; value=&quot;C:\DataExtracts\Mapping.sdl&quot;/&gt;<br>                &lt;entry key=&quot;dataAccess.type&quot; value=&quot;csvWrite&quot;/&gt;<br>                &lt;entry key=&quot;dataAccess.name&quot; value=&quot;C:\DataExtracts\data\extract.csv&quot;/&gt;<br>            &lt;/map&gt;<br>        &lt;/property&gt;<br>    &lt;/bean&gt;<br>&lt;/beans&gt;</pre><p>Edit the following parameters in the XML</p><p><strong>sfdc.endpoint : </strong>Replace with<strong> </strong>the URL of your Salesforce instance e.g. <a href="https://jimsproperty.salesforce.com/">https://jimsproperty.salesforce.com/.</a></p><p><strong>sfdc.username : </strong>Enter the username used in Data Loader</p><p><strong>sfdc.password : </strong>Enter the encrypted password value that you created in step 3 above</p><p><strong>process.encryptionKeyFile</strong> : full path of the key used to encrypt the password in step 3 above</p><p><strong>sfdc.entity</strong> : The object used in step 1</p><p><strong>sfdc.extractionSOQL</strong> : The query saved in step 1</p><p><strong>process.mappingFile : </strong>Enter the path and file name of the mapping file created in step 4</p><p><strong>sfdc.debugMessages</strong> : Currently set to true for troubleshooting. Set to false after your import is up and running.</p><p><strong>sfdc.debugMessagesFile : </strong>Enter the path and file name for the debug log file.</p><p><strong>process.outputSuccess : </strong>Enter the path and file name for the success log file.</p><p><strong>process.outputError : </strong>Enter the path and file name for the error log file.</p><p><strong>dataAccess.name</strong> : Full path and filename of the file to which you want to write the data</p><p><em>You may also need to add proxy configuration if you are behind a firewall:</em></p><p><strong>sfdc.proxyHost </strong>: The IP or hostname of the proxy server<br><strong>sfdc.proxyPort </strong>: The port used by the proxy server</p><p>Also note the following lines:</p><blockquote><strong>&lt;entry key=”process.operation” value=”extract”/&gt;</strong><br>and<br><strong>&lt;entry key=”dataAccess.type” value=”csvWrite”/&gt;</strong></blockquote><p>We are running an extract operation rather than an import (unlike in the Salesforce walkthrough)</p><p>Further configuration parameters can be found here: <a href="https://help.salesforce.com/articleView?id=loader_params.htm&amp;type=5">https://help.salesforce.com/articleView?id=loader_params.htm&amp;type=5</a></p><p>Finally we can extract the data. On the command line call the process.bat in the\bin folder with the path to your configuration file and the bean ID.</p><p>e.g.</p><pre>C:\Program Files (x86)\salesforce.com\Data Loader\bin&gt;<strong>process.bat “C:\DataExtracts\config”  csvPropertyExtractProcess</strong></pre><p>Finally, you will want to schedule it as a batch or PowerShell script that should also automate the logfile processing and raise alerts or information.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c7408026e961" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>