https://discord.umbraco.com
Join Discord
Umbraco 13 Unable to create custom table in custom Migration Plan
p

ProNotion

9 months ago
I have an Umbraco 13 Migration which inhertis from
MigrationBase
and is silently failing with the following exception:
Umbraco.Cms.Infrastructure.Migrations.IncompleteMigrationExpressionException: Cannot create a new expression: the previous expression has not run.
   at Umbraco.Cms.Infrastructure.Migrations.MigrationBase.BeginBuild[T](T builder)
   at Umbraco.Cms.Infrastructure.Migrations.MigrationBase.get_Create()
It's occuring here where I try and create the table:
protected override void Migrate()
{
    if (!TableExists("MyCustomTable"))
    {
        Create.Table<MyCustomTable>().Do();
    }
}
From what I can gather the error occurs because migrations need to execute each expression before starting a new one but there are no other expressions and I'm struggling to try and find what/where this might be coming from. Any ideas?
p
j
+2
  • 4
  • 48
  • 32
Azure Open AI - how to put a chat bot / assistant on your Umbraco website!
s

SiempreSteve

11 months ago
Inspired by the recent talk by Henk Boelman at the UK Umbraco festival I wanted to add a AI powered chat / assistant to a client's website for a bit of wow. I want to have this thing take an API json feed of a simple product catalogue and then allow the user to have recommendations from it. I've got as far as creating an assistant in the Azure AI Studio - it works nice enough though I had to upload a manual json file for now. My next step is to integrate this with my website. Not sure how to start that - I don't have a react site (as per all the MS demos) and want to keep this in vanilla JS / using my Umbraco backend. Has anyone done this? Any tips appreciated oin: 1) How I get the assistant to use an api endpoint and update daily for the product catalogue 2) How to integrate / drop it on my site.
s
  • 1
  • 1
  • 32
Context API | Umbraco CMS
i

ICanCSharp

about 1 year ago
Hello , I want to consume UMBBLOCKENTRY_CONTEXT inside of a UmbUfmComponentBase. how to use UmbContextConsumer this page does not give much details https://docs.umbraco.com/umbraco-cms/customizing/foundation/working-with-data/context-api#alternative-solutions any help would be much appreciated thanks
i
l
  • 2
  • 5
  • 32
X-XSS-Protection header
a

Ambert

over 1 year ago
What's your experience with setting this header? Umbraco/MSDN seems to recommend to removing this header. If I understand correctly, older browsers (which do not support CSP), could use the absence of the X-XSS-Protection header to create an attack. is it better to keep the header, but for example set it to
Sanitize
instead of
Block
?
a
s
j
  • 3
  • 9
  • 32
Umbraco UI Library Storybook
d

Dean Leigh

over 1 year ago
This is only my personal opinion I have been waiting to publish a few packages and did not publish them in version 13 because I knew things would change considerably in 14. Version 13 and earlier use angular JS for packages in the back office whereas going forward packages will use web components in version 14 and onwards. Alongside the use of web components and Umbraco have released a component library called Umbraco UUI and to maintain the stars consistently within the back office if you use these components within your app they will suit and Umbraco perfectly so no need to use any other CSS framework. https://uui.umbraco.com/?path=/docs/uui-action-bar--docs
d
t
  • 2
  • 3
  • 32
[Solved] Custom Routes/Redirects/ContentFinder
c

Craig100

over 1 year ago
Umb V13.3.2 Site has just gone live, now new SEO wants to do PPC all of a sudden. Site has a form that is called from many places and depending on 2 variables passed to it, cat & loc, decides what the form is for and where it goes. I built it to pass the arguments as either querystring or post. I thought I could get away using the Skybrud Redirects package by having the original URL as /mypage/builders/berkshire, and redirecting to /mypage/?cat=Builders&loc=Berkshire but it doesn't work. It doesn't even hit /mypage. If the redirect doesn't work, would a Content Finder approach be viable? I just don't want to go down the custom route route[sic] at this stage as it'd mean a major rewrite. Have I misunderstood how redirects work wrt querystrings? Any ideas appreciated.
c
s
  • 2
  • 3
  • 32
UI Builder - content from SQL Stored Procedures
m

MobyDog

over 1 year ago
Having my first look at UI Builder for a new project in u13. It will involve quite a few custom areas and I am wondering how straightforward they would be to do with UI Builder vs rolling your own. Following the "first integration" guide in the doc, - https://docs.umbraco.com/umbraco-ui-builder/v/13.ui-builder.latest-lts/how-to-guides/creating-your-first-integration - I have set up a basic SQL table which is showing up in my new section etc and seems ok. However the content I need to work with is more complicated and in an already existing external database. For example, a list which is generated from sysobjects left outer joined with a couple of other tables. How do I even start on getting SQL statements or Stored Procedures in there somewhere? Are there any more complex tutorials out there somewhere on UI Builder? Another question I have, if we don't use UI Builder and diy it in U13, how much rewriting will there be when we switch to 17 in future when 13 is EOL? Thanks very much for any insights!
m
d
a
  • 3
  • 3
  • 32
Member Name in SQL
j

JN

over 1 year ago
How to get member name from SQL Database? I need to get member name in a stored procedure.
j
j
+2
  • 4
  • 13
  • 32
Translation visible in User dropdown?!
w

Warren Buckley

over 1 year ago
Translation/language question. Am I supposed to see my translation as a language in the Users dropdown?!
w
j
  • 2
  • 13
  • 32
How to hide certain documents from content API
c

Conner

almost 2 years ago
Hi, I store some private information that I only want to be visible on content delivery api response if request has token in header. I'm still new to Umbraco so not sure how to proceed. Or is there a way to store custom data type which is visible in back office, but not to content API, so i can only access it via custom controller route?
c
p
  • 2
  • 4
  • 32
Previous646566Next

Umbraco

A hub and casual space for you to interact with fellow community members and learn more about Umbraco!

Powered by